package cn.gson.crm.model.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.crm.model.pojo.Sendgoodsdetail;

@Repository
public interface SendGoodsDetailsDAO extends CrudRepository<Sendgoodsdetail, Long> {
	
	@Query("from Sendgoodsdetail s order by s.id desc")
	public List<Sendgoodsdetail> getAllSgd(Pageable pageable);
}
